@echo off
set ThisDir=%CD%

echo Build started...
call "%VS100COMNTOOLS%\vsvars32.bat"
SET Lib=

set BuildExe=%DevEnvDir%\devenv.com
set BuildParams=/rebuild Debug
set BuildParamsRelease=/rebuild Release
rem set BuildExe=msbuild.exe
rem set BuildParams=/t:Rebuild /p:Configuration=Debug;TargetFrameworkVersion=v3.5 /fileLoggerParameters:LogFile=build.log;Append;Verbosity=normal;Encoding=UTF-8
rem set BuildParamsRelease=/t:Rebuild /p:Configuration=Release;TargetFrameworkVersion=v3.5 /fileLoggerParameters:LogFile=build.log;Append;Verbosity=normal;Encoding=UTF-8

echo Build solution
echo Build solution > build.log
call "%BuildExe%" cludg.sln %BuildParams% >> build.log 
